﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Leo.Common
{
    public class PaginationRequest
    {
        public int PageIndex { get; set; } = 1;

        public int PageSize { get; set; } = 10;


        public IPagination ToPagination()
        {
            return new DefaultPagination
            {
                CurrentPageIndex = this.PageIndex,
                PageSize = this.PageSize
            };
        }
    }
}
